//
//  BaseWebViewController.m
//  LOLProject
//
//  Created by SXW on 16/3/24.
//  Copyright © 2016年 盛宣伟. All rights reserved.
//

#import "BaseWebViewController.h"

@interface BaseWebViewController ()

@end

@implementation BaseWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (UIWebView *)webView
{
    if (!_webView) {
        _webView = [[UIWebView alloc]initWithFrame:self.view.frame];
        if (self.urlWeb==nil || [self.urlWeb isEqualToString:@""]) {
            self.urlWeb = @"http://www.mobiletrain.org";
        }
        [_webView loadRequest:[[NSURLRequest alloc]initWithURL:[NSURL URLWithString:self.urlWeb]]];
    }
    return _webView;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
